/**
 * @copyright by Essensys and NashTesh VN
 */

package com.football.utils;

import java.io.File;

import android.os.Environment;


/**
 * @author canhnguyenx1
 *
 */
public class FileUtils {

    public static boolean checkDir(String myFile) {
        File dir = new File(Environment.getExternalStorageDirectory() + "/Euro2016/" + myFile/* "/mydirectory" */);
        if (dir.exists() && dir.isDirectory()) {
            return true;
        } else if (!dir.exists()) {
            // Create file upload directory if it doesn't exist
            dir.mkdir();
            return true;
        }
        return false;
    }
}
